<%@ Control Language="C#" AutoEventWireup="true" CodeFile="BulkTransfer.ascx.cs" Inherits="Controls_BulkTransfer" %>
<script src="/Manager/Common/Common.js" type="text/javascript"></script>
<style>
TABLE.GridView TD {text-align:right}
SELECT{font-family:menu;font-weight:bold}
</style>
<asp:UpdatePanel ID="pnl" UpdateMode="Always" runat="server">
	<ContentTemplate>
<table>
<tr>
	<td VAlign="top">
		<asp:ListBox style="margin-left:50px" DataSourceID="dsStates" ID="selStateFrom" AutoPostBack="true" runat="server" DataTextField="NameLong" DataValueField="ID" AppendDataBoundItems="true">
		<asp:ListItem Value="0" Text="ANY" Selected="True"></asp:ListItem>
		</asp:ListBox>
	</td>
	<td>====></td>
	<td VAlign="top">
		<asp:ListBox DataSourceID="dsStatesNext" ID="selStateTo" onchange="if(!confirm('Send?')){this.value=this.stateFrom;return false;}" AutoPostBack="true" runat="server" DataTextField="StateTo" DataValueField="StateToID" />
		<asp:Literal ID="ltrWelcomeJon" Visible="false" runat="server"><b>You are welcome, Jon.</b></asp:Literal>
	</td>
</tr>
</table>
<table><tr VAlign="top">
	<td>
		<ajaxtk:ConfirmButtonExtender ConfirmText="Add list to new batch?" TargetControlID="btnNewBatch" runat="server"/>
		<asp:Button runat="server" Text="New Batch" OnClick="MakeBatch" id="btnNewBatch" />
		<ajaxtk:ConfirmButtonExtender ConfirmText="Add list to existing batch?" TargetControlID="btnAddToBatch" runat="server"/>
		<asp:Button runat="server" Text="Add To " OnClick="MakeBatch" id="btnAddToBatch" />
	</td>
	<td>
		<asp:DropDownList DataSourceID="dsContractHolders" ID="selContractHolders" AutoPostBack="true" runat="server" DataTextField="Nick" DataValueField="ID" AppendDataBoundItems="true">
			<asp:ListItem Text="All" Value="-1" Selected="True"></asp:ListItem>
		</asp:DropDownList>
	</td>
	<td NoWrap>Batch Name:</td><td nowrap><input ID="txtBatchName" runat="server" style="width:15ex;overflow-x:visible"></td>
	<td nowrap>Batch Description:</td>
	<td><textarea ID="txaBatchDesc" runat="server" style="width:100%;overflow:visible;font-family:Monospace"></textarea></td>
</table>
	</ContentTemplate>
</asp:UpdatePanel>
<LOAN:PurchaseContracts ID="PurchaseContracts" FilterDefault="1=0"  runat="server" />
<UI:PurchaseBatches ID="PurchaseBatches" PageSize="10" ShowFooter="false" runat="server" />

<asp:Repeater DataSourceID="dsCH" runat="server"></asp:Repeater>
<DS:DummyDataSource ID="dsCH" ColumnName="ContractHolderID" runat="server">
<SelectParameters><asp:ControlParameter DefaultValue="0" Name="ColumnValue" PropertyName="SelectedValue" ControlID="selContractHolders" /></SelectParameters></DS:DummyDataSource>

<asp:Repeater DataSourceID="dsStatus" runat="server"></asp:Repeater>
<DS:DummyDataSource ID="dsStatus" ColumnName="StatusID" runat="server"><SelectParameters><asp:ControlParameter DefaultValue="0" Name="ColumnValue" PropertyName="SelectedValue" ControlID="selStateFrom" /></SelectParameters></DS:DummyDataSource>

<DS:StatesDataSource ID="dsStates" Filter="ParentID>0 AND TableName='t_Loan'" runat="server" />
<DS:StateFlowNextStatesDataSource ID="dsStatesNext" StateFromID="0" runat="server" />
<DS:ContractHoldersDataSource id="dsContractHolders" runat="server" />